require 'rubygems'
require 'sinatra'
require 'haml'
require 'sass'
require 'json'

get '/style.css' do
    content_type 'text/css', :charset => 'utf-8'
    sass :style
end

get '/' do
    haml :index
end

get '/json/:name' do
    content_type 'application/json', :charset => 'utf-8'
    {"id"=>1, "params"=>params[:name]}.to_json
end
